package com.lanchetech.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lanchetech.bean.request.ActivityBindSpuReq;
import com.lanchetech.bean.response.BasePageResp;
import com.lanchetech.bean.response.BaseResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.response.SpuResp;
import com.lanchetech.entity.ActivityBindSpu;

public interface ActivityBindSpuService extends IService<ActivityBindSpu> {

    /**
     * 选择绑定活动商品
     * @param bindSpu
     * @return
     */
    BaseResp bindSpu(ActivityBindSpu bindSpu);


    /**
     * 解绑活动商品
     * @param id
     * @return
     */
    BaseResp unBindSpu(Long id);


    /**
     * 查看绑定活动商品分页列表
     * @return
     */
    ResultData<BasePageResp<ActivityBindSpu>> getPage(ActivityBindSpuReq req);


    ResultData<BasePageResp<SpuResp>> getBindPage(ActivityBindSpuReq req);
}
